home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
dragpic3
/
readme.txt
< prev
Wrap
Text File
|
1998-04-20
|
735b
|
18 lines
http://www.vb-helper.com/HowTo/dragpic3.zip
Purpose
Overlay a picture on another and allow the user to drag it quickly.
Method
Use a hidden PictureBox to store the background image. To move the
foreground object, erase it using BitBlt to draw from the hidden picture
to the visible picture. Use BitBlt and the image mask with op code
MERGEPAINT to knock out the mask. Finally, use BitBlt with the foreground
image and opcode SRCAND to drop in the foreground image.
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.